#!/usr/bin/env python
# Create: 2018/10/22
__author__ = '749B'
"""login.py做好了，之后在这个基础上开发"""

from bs4 import BeautifulSoup

from _51CTO import login

session = login.login()
base_url = "http://edu.51cto.com"
url = 'http://edu.51cto.com/center/course/lesson/index?id=186_136499&type=wejob'
r = session.get(url)
soup = BeautifulSoup(r.text, features='html.parser')
"""获取所有的课程信息
lesson_list = soup.select('div#v_right div.lessonList li.lesson')
for lesson in lesson_list:
    a = lesson.find('a')
    title = a.get('title')
    href = a.get('href')
    print(title, href)
"""

# 这个东西哪里来的
# sign: 504c52c2bea441fe522f63dab4894fa0
url = "http://edu.51cto.com/center/player/play/get-lesson-info?type=wejoboutcourse&sign=aa0352839a5a4690f9afdd4af06076ca&lesson_id=186_136500"







